(use-package web-mode
  :ensure t
  :config 
  (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)))

;; https://www.youtube.com/watch?v=9Fl42GCHDFo&list=PLfKlByYqIizSHxys20ejvomuMjTuXHOsh&index=16&ab_channel=%E6%B4%8B%E8%94%A5%E5%B7%A5%E4%BD%9C%E5%AE%A4%E6%B4%8B%E8%94%A5%E5%B7%A5%E4%BD%9C%E5%AE%A4
;; config: https://github.com/jerryhsieh/Emacs-config/blob/master/custom/web.el
(use-package emmet-mode
  :ensure t
  :hook (web-mode css-mode scss-mode sgml-mode rjsx-mode)
  :config
  (add-hook 'emmet-mode-hook (lambda()
                              (setq emmet-indent-after-insert t)))
)

(provide 'init-web)
